﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CricketAdmin.master" AutoEventWireup="true" CodeFile="ViewMatchType.aspx.cs" Inherits="ViewMatchType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="container-fluid">
        <h3 class="page-title">
            View Match Type<small></small>
        </h3>
        <%--<ul class="breadcrumb">
            <li><i class="icon-home"></i>Home<span class="icon-angle-right"> </span></li>
            <li>Match Type<span class="icon-angle-right"></span></li>
            <li>View All</li>
        </ul>--%>
        <div>
            <asp:Button ID="btnAddNew" runat="server" Text="Add New" CssClass="btn blue" OnClick="btnAddNew_Click" />
        </div>
        <br />
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-globe"></i>All Match Type</div>
                        <div class="tools">
                            <a href="javascript:;" class="collapse"></a><a href="#portlet-config" data-toggle="modal"
                                class="config"></a><a href="javascript:;" class="reload"></a><a href="javascript:;"
                                    class="remove"></a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <div id="divRed" runat="server">
                        </div>
                        <div id="divGreen" runat="server">
                        </div>
                        <table class="table table-striped table-hover table-bordered" id="sample_editable_1">
                            <thead>
                                <tr>
                                    <th>
                                        Type
                                    </th>
                                    
                                    <th>
                                        Actions
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="rptMatchType" runat="server" OnItemCommand="rptMatchType_ItemCommand" OnItemDataBound="rptMatchType_ItemDataBound">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <asp:Label ID="hdnMatchId" Style="display: none;" runat="server" Text='<%#Eval("Id") %>'></asp:Label>
                                                <asp:Label ID="lblType" runat="server" Text='<%# Eval("Type") %>'></asp:Label>
                                            </td>
                                            
                                            <td>
                                                <asp:Button ID="btnEdit" runat="server" CssClass="btn blue" Text="Edit" CommandName="EditMatchType" />
                                                &nbsp;
                                                <asp:Button ID="btnDelete" runat="server" CssClass="btn red" Text="Delete" CommandName="DeleteMatchType" />
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

